import { getProvinces } from "@/util/areaService";
import $ from "jquery";

getProvinces().then((ps) => {
  const ulEl = $(".provinces");
  for (const p of ps) {
    const liEl = $("<li>").appendTo(ulEl);
    const aEl = $("<a>").text(p.simpleName).appendTo(liEl);
    aEl.prop("href", `detail.html?name=${p.areaName}&id=${p.id}`);
  }
});
